<div class="post_list">

    <div class="table-data-list">
        <form name="form" class="form" action="index.php?c=<?php echo $_REQUEST['c']; ?>&m=<?php echo $_REQUEST['m'];?>" method="post">
            <table class="table">
                <thead>
                <tr class="active">
                    <th>帖子</th>
                    <th>图片数量</th>
                    <th>作者/时间</th>
                    <th>查看/回复</th>
                    <th>状态</th>
                </tr>
                </thead>
                <tbody>
                <?php
                    foreach($list as $thread){
                ?>
                    <tr>
                        <td>
                            <span class="subject" <?php if($thread['is_hot']){ echo 'style="font-weight: bold;color: #EE1B2E;"';}?>>
                                <a class="J_menuItem" data-names="帖子列表"  href="index.php?c=post&m=post_list&&s_content=<?php echo $thread['id']?>&s_type_id=1" target="_blank">
                                    <?php echo $thread['title'];?>
                                </a>
                            </span>
                            <?php if($thread['is_hot']){?>
                                <img src="data/static/digest.gif" alt="精华" align="精华">
                            <?php }?>
                        </td>
                        <td>
                            <?php
                            $img_num=0;
                                $img_num=explode(',',$thread['pics']);
                               echo count($img_num);
                            ?>
                        </td>
                        <td>
                            <?php $userInfo = $this->UserModel->getUserInfo($thread['uid']);?>
                            <a href="index.php?c=user&m=user_info&uid=<?php echo $thread['uid'];?>" class="user"><?php echo $userInfo['nickname'];?></a>
                            <em><?php echo date('Y-m-d H:i:s',$thread['add_time']);?></em>
                        </td>
                        <td><?php echo $thread['pv_num'];?>/<?php echo $thread['comment_num'];?></td>
                        <td>
                            <?php
                            echo $thread['is_audit']==1?"已审核":($thread['is_audit'] == 2?"审核中":"待审核");
                            echo "(".($thread['status']==1?"成功":($thread['status'] == 2?"未通过":"已删除")).")";
                            ?>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
        </form>
    </div>
    <div class="set_page">
        <?php echo $multipage; ?>
        <div class="clearfix"></div>
    </div>
</div>